package com.docMan.service;

import java.util.List;

import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.docMan.dao.pojo.DocForward;

@Path("/docForward")
@Produces(MediaType.APPLICATION_JSON)
public interface DocForwardService extends BaseService<DocForward> {

	@POST
	@Path("/forwardFiles")
	abstract String forwardFiles(@FormParam("fileIds") List<Integer> fileIds,
			@FormParam("unitIds")List<Integer> unitIds, @FormParam("humanIds")List<Integer> humanIds);
	
	@GET
	@Path("/getHumanUnacceptForward")
	abstract String getHumanUnacceptForward();
	@POST
	@Path("/deleteUnacceptForward")
	abstract String deleteUnacceptForward(@FormParam("forwardId")int forwardId);
	
	@POST
	@Path("/acceptForwardFile")
	abstract String acceptForwardFile(@FormParam("forwardId")int forwardId,@FormParam("directoryId")int directoryId);
}
